package ooday03;

public class InterfaceDeno {
    public static void main(String[] args) {
        //Inter i = new Inter();//编译错误,接口是抽象的,不完整,所以不能实例化

    }
}

interface Inter{
    void eat();
    abstract void sayHi();
    //void say(){}//编译错误,抽象接口不能有方法体,是必须需要被重写的
}

class InterImpl implements Inter{
    public void eat(){
        System.out.println();
    }
    public void sayHi(){
        System.out.println();
    }
}


interface Inter1{
    void show();
}
interface Inter2{
    void say();
}
abstract class Aoo{
    abstract void sat();
}

class Boo extends Aoo implements Inter1,Inter2{
    public void show(){

    }
    public void say(){

    }

    void sat(){

    }
}

interface Inter3 {
    void show();
}
interface Inter4 extends Inter3{
    void sayHi();
}

class Coo implements Inter4{
    public void show(){
        System.out.println();
    }

    public void sayHi(){
        System.out.println();
    }
}